package com.qf.dao.impl;

import com.qf.bean.Task;
import com.qf.dao.TaskDao;
import org.springframework.stereotype.Repository;

/**
 * 2019/11/30
 * Administrator
 * springQuartz1130
 * 面向对象面向君  不负代码不负卿
 */
public class TaskDaoImpl implements TaskDao {
    public Task findTaskByName(String name) {
        if(name.equals("张三")){
            return new Task("张三因为迟到写100遍罚写");
        }
        return new Task("不上早自习的,团体表演");
    }
}
